<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8">
    <meta name="description" content="清镇安监后台管理系统">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

    <title>登录—清镇安监后台管理系统</title>

    <style type="text/css">
        body, div, p, h1, h2, h3, h4, h5, h6, li, span, label, a {
            font-family: "Arial",
            "Microsoft YaHei", "微软雅黑",
            "SimHei", "黑体",
            "STHeiti", "华文黑体",
            "NSimSun", "新宋体",
            "SimSun", "宋体",
            "sans-serif";
        }
    </style>

    <link rel="shortcut icon" href="<%=basePath%>image/common/logo.jpg">

    <link rel="stylesheet" href="<%=basePath%>js/lib/ace/assets/css/bootstrap.css">
    <link rel="stylesheet" href="<%=basePath%>js/lib/ace/components/font-awesome/css/font-awesome.css">
    <link rel="stylesheet" href="<%=basePath%>js/lib/ace/assets/css/ace-fonts.css">
    <link rel="stylesheet" href="<%=basePath%>js/lib/ace/assets/css/ace.css">

    <!--[if lte IE 9]>
    <link rel="stylesheet" href="<%=basePath%>js/lib/ace/assets/css/ace-part2.css">
    <![endif]-->

    <link rel="stylesheet" href="<%=basePath%>js/lib/ace/assets/css/ace-rtl.css">

    <!--[if lte IE 9]>
    <link rel="stylesheet" href="<%=basePath%>js/lib/ace/assets/css/ace-ie.css">
    <![endif]-->

    <link rel="stylesheet" href="<%=basePath%>css/lib/iconfont/iconfont.css">
    <link rel="stylesheet" href="<%=basePath%>js/lib/jquery/jquery-toast/css/jquery.toast.css">

    <!--[if lte IE 8]>
    <script type="text/javascript" src="<%=basePath%>js/lib/ace/components/html5shiv/dist/html5shiv.min.js"></script>
    <script type="text/javascript" src="<%=basePath%>js/lib/ace/components/respond/dest/respond.min.js"></script>
    <![endif]-->
</head>

<body class="login-layout blur-login">
<div class="main-container">
    <div class="main-content">
        <div class="row">
            <div class="col-sm-10 col-sm-offset-1">
                <div class="login-container">
                    <div class="center">
                        <h1>
                            <i class="ace-icon iconfont icon-house green" style="font-size: 30px;"></i>
                            <span class="red">清镇安监</span>
                            <span class="white" id="id-text2">后台管理系统</span>
                        </h1>
                        <h5 class="light-blue" id="id-company-text">&copy;博益科技发展有限公司</h5>
                    </div>

                    <div class="space-6"></div>

                    <div class="position-relative">
                        <%--[登录盒子]--%>
                        <div id="login-box" class="login-box visible widget-box no-border">
                            <div class="widget-body">
                                <div class="widget-main">
                                    <h4 class="header blue lighter bigger">
                                        <i class="ace-icon fa fa-coffee green"></i>输入账号和密码登录
                                    </h4>

                                    <div class="space-6"></div>

                                    <form id="login-form" method="post" enctype="application/x-www-form-urlencoded" action="<%=basePath%>web/login.html">
                                        <fieldset>
                                            <label class="block clearfix">
                                                <span class="block input-icon input-icon-right">
                                                    <input name="account" type="text" class="form-control" placeholder="账号" value="${resultVo.result}">

                                                    <i class="ace-icon fa fa-loginUser"></i>
                                                </span>
                                            </label>

                                            <label class="block clearfix">
                                                <span class="block input-icon input-icon-right">
                                                    <input name="passwd" type="password" class="form-control" placeholder="密码">

                                                    <i class="ace-icon fa fa-lock"></i>
                                                </span>
                                            </label>

                                            <c:choose>
                                                <c:when test="${(resultVo != null) && (resultVo.resultCode != null)}">
                                                    <label class="block clearfix">
                                                        <span class="red block">${resultVo.resultMsg}</span>
                                                    </label>
                                                </c:when>

                                                <c:otherwise>
                                                    <div class="space"></div>
                                                </c:otherwise>
                                            </c:choose>

                                            <div class="clearfix">
                                                <label class="inline">
                                                    <input name="rememberMe" type="checkbox" class="ace">

                                                    <span class="lbl">记住我</span>
                                                </label>

                                                <button name="login-btn" type="button" class="width-35 pull-right btn btn-sm btn-primary">
                                                    <i class="ace-icon fa fa-key"></i>

                                                    <span class="bigger-110">登录</span>
                                                </button>
                                            </div>

                                            <div class="space-4"></div>
                                        </fieldset>
                                    </form>

                                    <div class="social-or-login center">
                                        <span class="bigger-110">欢迎登录</span>

                                        <%--
                                        <span class="bigger-110">合作登录</span>
                                        --%>
                                    </div>

                                    <div class="space-6"></div>

                                    <%--
                                    <div class="social-login center">
                                        <a class="btn btn-primary" title="QQ登录">
                                            <i class="ace-icon fa fa-qq"></i>
                                        </a>
                                    </div>
                                    --%>
                                </div>

                                <%--
                                <div class="toolbar clearfix">
                                    <div>
                                        <a href="#" data-toggle="modal" data-target="#forgot-dialog" class="forgot-password-link">
                                            <i class="ace-icon fa fa-arrow-left"></i>忘记密码
                                        </a>
                                    </div>

                                    <div>
                                        <a href="#" data-toggle="modal" data-target="#signup-dialog" claloginUseruser-signup-link">
                                            注册<i class="ace-icon fa fa-arrow-right"></i>
                                        </a>
                                    </div>
                                </div>
                                --%>
                            </div>
                        </div>
                        <%--[/登录盒子]--%>

                        <%--[邮箱找回密码盒子]--%>
                        <div id="mail-forgot-box" class="forgot-box widget-box no-border">
                            <div class="widget-body">
                                <div class="widget-main">
                                    <h4 class="header red lighter bigger">
                                        <i class="ace-icon fa fa-key"></i>找回密码
                                    </h4>

                                    <div class="space-6"></div>

                                    <p>输入邮箱找回密码</p>

                                    <form>
                                        <fieldset>
                                            <label class="block clearfix">
                                                <span class="block input-icon input-icon-right">
                                                    <input type="email" class="form-control" placeholder="邮箱">

                                                    <i class="ace-icon fa fa-envelope"></i>
                                                </span>
                                            </label>

                                            <div class="clearfix">
                                                <button type="button" class="width-35 pull-right btn btn-sm btn-danger">
                                                    <i class="ace-icon fa fa-lightbulb-o"></i>

                                                    <span class="bigger-110">发送！</span>
                                                </button>
                                            </div>
                                        </fieldset>
                                    </form>
                                </div>

                                <div class="toolbar my-toolbar center">
                                    <a href="#" data-target="#login-box" class="back-to-login-link">返回登录<i class="ace-icon fa fa-arrow-right"></i></a>
                                </div>
                            </div>
                        </div>
                        <%--[/邮箱找回密码盒子]--%>

                        <%--[手机找回密码盒子]--%>
                        <div id="phone-forgot-box" class="forgot-box widget-box no-border">
                            <div class="widget-body">
                                <div class="widget-main">
                                    <h4 class="header red lighter bigger">
                                        <i class="ace-icon fa fa-key"></i>找回密码
                                    </h4>

                                    <div class="space-6"></div>

                                    <p>输入手机号找回密码</p>

                                    <form>
                                        <fieldset>
                                            <label class="block clearfix">
                                                <span class="block input-icon input-icon-right">
                                                    <input type="tel" class="form-control" placeholder="手机号">

                                                    <i class="ace-icon fa fa-mobile"></i>
                                                </span>
                                            </label>

                                            <div class="clearfix">
                                                <button type="button" class="width-35 pull-right btn btn-sm btn-danger">
                                                    <i class="ace-icon fa fa-lightbulb-o"></i>

                                                    <span class="bigger-110">发送！</span>
                                                </button>
                                            </div>
                                        </fieldset>
                                    </form>
                                </div>

                                <div class="toolbar my-toolbar center">
                                    <a href="#" data-target="#login-box" class="back-to-login-link">返回登录<i class="ace-icon fa fa-arrow-right"></i></a>
                                </div>
                            </div>
                        </div>
                        <%--[/手机找回密码盒子]--%>

                        <%--[邮箱注册盒子]--%>
                        <div id="mail-signup-box" class="signup-box widget-box no-border">
                            <div class="widget-body">
                                <div class="widget-main">
                                    <h4 class="header green lighter bigger">
                                        <i class="ace-icon fa fa-users blue"></i>注册新用户
                                    </h4>

                                    <div class="space-6"></div>

                                    <p>开始输入你的信息：</p>

                                    <form>
                                        <fieldset>
                                            <label class="block clearfix">
                                                <span class="block input-icon input-icon-right">
                                                    <input type="email" class="form-control" placeholder="邮箱">

                                                    <i class="ace-icon fa fa-envelope"></i>
                                                </span>
                                            </label>

                                            <label class="block clearfix">
                                                <span class="block input-icon input-icon-right">
                                                    <input type="password" class="form-control" placeholder="密码">

                                                    <i class="ace-icon fa fa-lock"></i>
                                                </span>
                                            </label>

                                            <label class="block clearfix">
                                                <span class="block input-icon input-icon-right">
                                                    <input type="password" class="form-control" placeholder="确认密码">

                                                    <i class="ace-icon fa fa-retweet"></i>
                                                </span>
                                            </label>

                                            <label class="block">
                                                <input type="checkbox" class="ace">

                                                <span class="lbl">我同意<a href="#">用户协议</a></span>
                                            </label>

                                            <div class="space-24"></div>

                                            <div class="clearfix">
                                                <button type="reset" class="width-30 pull-left btn btn-sm">
                                                    <i class="ace-icon fa fa-refresh"></i>

                                                    <span class="bigger-110">重置</span>
                                                </button>

                                                <button type="button" class="width-65 pull-right btn btn-sm btn-success">
                                                    <span class="bigger-110">注册</span>

                                                    <i class="ace-icon fa fa-arrow-right icon-on-right"></i>
                                                </button>
                                            </div>
                                        </fieldset>
                                    </form>
                                </div>

                                <div class="toolbar my-toolbar center">
                                    <a href="#" data-target="#login-box" class="back-to-login-link">
                                        <i class="ace-icon fa fa-arrow-left"></i>返回登录
                                    </a>
                                </div>
                            </div>
                        </div>
                        <%--[/邮箱注册盒子]--%>

                        <%--[手机注册盒子]--%>
                        <div id="phone-signup-box" class="signup-box widget-box no-border">
                            <div class="widget-body">
                                <div class="widget-main">
                                    <h4 class="header green lighter bigger">
                                        <i class="ace-icon fa fa-users blue"></i>注册新用户
                                    </h4>

                                    <div class="space-6"></div>

                                    <p>开始输入你的信息：</p>

                                    <form>
                                        <fieldset>
                                            <label class="block clearfix">
                                                <span class="block input-icon input-icon-right">
                                                    <input type="tel" class="form-control" placeholder="手机号">

                                                    <i class="ace-icon fa fa-mobile"></i>
                                                </span>
                                            </label>

                                            <label class="block clearfix">
                                                <span class="block input-icon input-icon-right">
                                                    <input type="password" class="form-control" placeholder="密码">

                                                    <i class="ace-icon fa fa-lock"></i>
                                                </span>
                                            </label>

                                            <label class="block clearfix">
                                                <span class="block input-icon input-icon-right">
                                                    <input type="password" class="form-control" placeholder="确认密码">

                                                    <i class="ace-icon fa fa-retweet"></i>
                                                </span>
                                            </label>

                                            <label class="block clearfix">
                                                <span class="input-group">
                                                    <span class="block input-icon input-icon-right">
                                                        <input type="text" class="form-control" placeholder="验证码">

                                                        <i class="ace-icon fa fa-smile-o"></i>
                                                    </span>

                                                    <span class="input-group-btn">
                                                        <button type="button" class="btn btn-sm btn-primary" disabled="disabled">获取验证码</button>
                                                    </span>
                                                </span>
                                            </label>

                                            <label class="block">
                                                <input type="checkbox" class="ace">

                                                <span class="lbl">我同意<a href="#">用户协议</a></span>
                                            </label>

                                            <div class="space-24"></div>

                                            <div class="clearfix">
                                                <button type="reset" class="width-30 pull-left btn btn-sm">
                                                    <i class="ace-icon fa fa-refresh"></i>

                                                    <span class="bigger-110">重置</span>
                                                </button>

                                                <button type="button" class="width-65 pull-right btn btn-sm btn-success">
                                                    <span class="bigger-110">注册</span>

                                                    <i class="ace-icon fa fa-arrow-right icon-on-right"></i>
                                                </button>
                                            </div>
                                        </fieldset>
                                    </form>
                                </div>

                                <div class="toolbar my-toolbar center">
                                    <a href="#" data-target="#login-box" class="back-to-login-link"><i class="ace-icon fa fa-arrow-left"></i>返回登录</a>
                                </div>
                            </div>
                        </div>
                        <%--[/手机注册盒子]--%>
                    </div>

                    <%--[改变背景色]--%>
                    <div class="navbar-fixed-top align-right">
                        <br>
                        &nbsp;
                        <a id="btn-login-dark" href="#">暗色</a>
                        &nbsp;
                        <span class="blue">/</span>
                        &nbsp;
                        <a id="btn-login-blur" href="#">模糊色</a>
                        &nbsp;
                        <span class="blue">/</span>
                        &nbsp;
                        <a id="btn-login-light" href="#">亮色</a>
                        &nbsp; &nbsp; &nbsp;
                    </div>
                    <%--[/改变背景色]--%>
                </div>
            </div>
        </div>
    </div>
</div>

<%--[找回密码对话框]--%>
<div id="forgot-dialog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true">
    <div class="modal-dialog" style="margin-top: 200px; width: 300px; height: auto;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>

                <h6 id="passwd_modal" class="modal-title">找回密码（按【ESC】键退出）</h6>
            </div>
            <div class="modal-body my-toolbar" style="text-align: center;">
                <a href="#" class="btn btn-primary" style="margin-right: 20px;" data-dismiss="modal" data-target="#mail-forgot-box">邮箱找回</a>

                <a href="#" class="btn btn-success" data-dismiss="modal" data-target="#phone-forgot-box">手机找回</a>
            </div>
        </div>
    </div>
</div>
<%--[/找回密码对话框]--%>

<%--[注册对话框]--%>
<div id="signup-dialog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true">
    <div class="modal-dialog" style="margin-top: 200px; width: 300px; height: auto;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>

                <h6 id="register_modal" class="modal-title">免费注册（按【ESC】键退出）</h6>
            </div>
            <div class="modal-body my-toolbar" style="text-align: center;">
                <a href="#" class="btn btn-primary" style="margin-right: 20px;" data-dismiss="modal" data-target="#mail-signup-box">邮箱注册</a>

                <a href="#" class="btn btn-success" data-dismiss="modal" data-target="#phone-signup-box">手机注册</a>
            </div>
        </div>
    </div>
</div>
<%--[/注册对话框]--%>

<!--[if !IE]> -->
<script type="text/javascript" src="<%=basePath%>js/lib/ace/components/jquery/dist/jquery.js"></script>
<!-- <![endif]-->

<!--[if IE]>
<script type="text/javascript" src="<%=basePath%>js/lib/ace/components/jquery.1x/dist/jquery.js"></script>
<![endif]-->

<script type="text/javascript">
    if ('ontouchstart' in document.documentElement) document.write("<script src='<%=basePath%>js/lib/ace/components/_mod/jquery.mobile.custom/jquery.mobile.custom.js'>" + "<" + "/script>");
</script>

<script type="text/javascript" src="<%=basePath%>js/lib/ace/components/bootstrap/dist/js/bootstrap.js"></script>
<script type="text/javascript" src="<%=basePath%>js/common/jquery.utils.js"></script>
<script type="text/javascript" src="<%=basePath%>js/common/utils.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/jquery/jquery-toast/js/jquery.toast.js"></script>
<script type="text/javascript" src="<%=basePath%>js/jsp/login.js"></script>

<script type="text/javascript">
    // 切换盒子
    jQuery(function ($) {
        $(document).on('click', '.my-toolbar a[data-target]', function (e) {
            e.preventDefault();
            var target = $(this).data('target');
            $('.widget-box.visible').removeClass('visible');
            $(target).addClass('visible');
        });
    });

    // 改变背景色
    jQuery(function ($) {
        $('#btn-login-dark').on('click', function (e) {
            $('body').attr('class', 'login-layout');
            $('#id-text2').attr('class', 'white');
            $('#id-company-text').attr('class', 'blue');

            e.preventDefault();
        });

        $('#btn-login-light').on('click', function (e) {
            $('body').attr('class', 'login-layout light-login');
            $('#id-text2').attr('class', 'grey');
            $('#id-company-text').attr('class', 'blue');

            e.preventDefault();
        });

        $('#btn-login-blur').on('click', function (e) {
            $('body').attr('class', 'login-layout blur-login');
            $('#id-text2').attr('class', 'white');
            $('#id-company-text').attr('class', 'light-blue');

            e.preventDefault();
        });
    });
</script>
</body>
</html>